package com.songshuai.webapi.baseapi.service.impl;

import com.songshuai.webapi.baseapi.enumerations.ResultStatus;
import com.songshuai.webapi.baseapi.exception.BusinessException;
import com.songshuai.webapi.baseapi.pojo.BaseParmDto;
import com.songshuai.webapi.baseapi.service.AuthCheckService;
import com.songshuai.webapi.baseapi.util.Util;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class AuthCheckServiceImpl implements AuthCheckService {

    @Value("${config.self.officialtoken}")
    private String officialtoken;


    @Override
    public Boolean CheckAuth(BaseParmDto<?> parm) {
        Boolean retData = true;
        return retData;
    }

    @Override
    public String generateCrmToken(Long timespan, String token) {
        return Util.md5(timespan+token);
    }
}
